//
//  DataToImageTransformer.m
//  SEOBox
//
//  Created by Syd on 10-2-28.
//  Copyright 2010 MusicPeace.ORG. All rights reserved.
//

#import "DataToImageTransformer.h"


@implementation DataToImageTransformer

+ (Class)transformedValueClass {
    return [NSImage class];
}
+ (BOOL)allowsReverseTransformation {
    return NO;
}
- (id)transformedValue:(id)value 
{
    if (value)
    {
        NSImage *img = [[[NSImage alloc] initWithData:value] autorelease];
        return img;
    }
	return nil;
}

@end